package cn.wolfcode.crm.domain;

import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Stockincome {

    public static final int STATE_NOMAL = 0;
    public static final int STATE_LOCK = 1;

    private Long id;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date vdate;//业务时间
    private BigDecimal costPrice;//单据
    private BigDecimal number;//数量
    private BigDecimal amountPrice;//小计
    private BigDecimal receipts;//实收
    private Integer state = STATE_NOMAL;//状态
    private String sn;  //编码
    private Supplier supplier;  //供应商
    private Operator operator;      //操作人员
    private  Product product;//商品
    private Date inputTime; //进货时间
    private String payment; //支付方式

    //明细单
    private Long billId;
    private List<StockIncomeBill> bills;
   // private List<StockincomeVo> billVos;


    private Depot depot;    //仓库
}